<div id="choose" class="index-choose container">
    <h3 class="text-center"><strong>腾铺<em>优</em>选</strong></h3>
    {{ if adsenses }}
    <div class="list row">
        <% for(let i = 0; i < 3; i++){ %>
        <div class="col-lg-4 col-md-4">
            {{if adsenses.HomeOpt[i]}}
            {{set item = adsenses.HomeOpt[i]}}
                <a href="/{{ site.subDomain }}/detail/{{item._id.toString()}}"  class="item-store pic">
                    <div class="point">优选</div>
                    <img src="{{item.images[0] | watermark}}" alt="">
                    <div class="con">
                        <div class="tit"><strong>{{item.title}}</strong></div>
                        <dl>
                            <dt>[转让]</dt>
                            <dd>{{item.estate.district}} {{item.estate.shopArea}}</dd>
                            <dd><strong>{{item.estate.area}}</strong>m<sup name="">2</sup></dd>
                            <dd><strong>{{item.estate.rental}}</strong>元/月</dd>
                        </dl>
                    </div>
                </a>
            {{/if}}
            <div class="con">
                {{if adsenses.HomeOptSm[i]}}
                {{ each adsenses.HomeOptSm item index }}
                {{ if i%3 == index%3 }}
                <a href="/{{ site.subDomain }}/detail/{{item._id.toString()}}" class="item-store media">
                        <div class="media-left">
                            <div class="point sm">优选</div>
                            <!-- <div style="width:100px;height:75px;overfllow:hidden;">
                                <img style="width:100%;height:auto;" src="{{item.images[0] | watermark}}" alt="">
                            </div> -->
                            <div>
                                <img src="{{item.images[0] | watermark}}" alt="">
                            </div>
                        </div>
                        <div class="media-body">
                            <h4 class="media-heading"><strong>{{item.title}}</strong></h4>
                            <p>
                                <strong>[转让]</strong>
                                <span>{{item.estate.district}} {{item.estate.shopArea}}</span>
                                <span>{{item.estate.type}}</span>
                            </p>
                            <p>
                                <span><strong>{{item.estate.area}}</strong>m<sup name="">2</sup></span>
                                <span><strong>{{item.estate.rental}}</strong>元/月</span>
                            </p>
                        </div>
                    </a>
                {{ /if }}
                {{ /each }}
                {{set item = adsenses.HomeOptSm[i]}}

                {{/if}}

                <% for(let j = 0; j < adsenses.HomeOptSmNo.length ; j++){ %>
                    {{if adsenses.HomeOptSmNo[i] && i%3 == j%3 }}
                    {{set item = adsenses.HomeOptSmNo[j]}}
                        <a href="/{{ site.subDomain }}/detail/{{item._id.toString()}}"  class="item-store media">
                            <div class="media-left">
                                <div class="point sm">优选</div>
                                <!-- <div style="width:100px;height:75px;overfllow:hidden;">
                                    <img style="width:100%;height:auto;" src="{{item.images[0] | watermark}}" alt="">
                                </div> -->
                                <div>
                                    <img src="{{item.images[0] | watermark}}" alt="">
                                </div>
                            </div>
                            <div class="media-body">
                                <h4 class="media-heading"><strong>{{item.title}}</strong></h4>
                                <p>
                                    <strong>[转让]</strong>
                                    <span>{{item.estate.district}} {{item.estate.shopArea}}</span>
                                    <span>{{item.estate.type}}</span>
                                </p>
                                <p>
                                    <span><strong>{{item.estate.area}}</strong>m<sup name="">2</sup></span>
                                    <span><strong>{{item.estate.rental}}</strong>元/月</span>
                                </p>
                            </div>
                        </a>
                    {{/if}}
                <% } %>
            </div>
        </div>
        <% } %>


    </div>
    {{ /if }}

    <div class="more"><a href="javascript:;">更多</a></div>
</div>
